package com.portico

import grails.converters.XML
import com.portico.dept.solarch.ProjectQuality
import com.portico.dept.solarch.ProjectStatus
import com.portico.dept.solarch.Project
import com.portico.dept.solarch.ProjectDashboard
import com.portico.dept.solarch.ProjectRisks
import com.portico.dept.solarch.TestCaseExecutionHistory

class WebServiceController {

    def index = { }

    def project = {
        def proj = Project.findAll()
        render proj as XML
    }

    def projectQuality = {
        def obj = ProjectQuality.findAll()
       render  obj as XML
    }

    def projectStatus ={
        def obj =  ProjectStatus.findAll()
        render  obj as XML
    }

    def dashboardStatus = {
        def obj = ProjectDashboard.findAll()
        render obj as XML
    }

    def projectRisks = {
        def obj =  ProjectRisks.findAll()
        render obj as XML
    }

    def projectTestCaseExecutionHistory = {
        def obj = TestCaseExecutionHistory.findAll();
        render obj as XML
    }

}
